﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011D5 RID: 4565
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SpaceZooTakeScRsp : IMessage<SpaceZooTakeScRsp>, IMessage, IEquatable<SpaceZooTakeScRsp>, IDeepCloneable<SpaceZooTakeScRsp>, IBufferMessage
	{
		// Token: 0x170039C9 RID: 14793
		// (get) Token: 0x0600CC67 RID: 52327 RVA: 0x00226BC1 File Offset: 0x00224DC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SpaceZooTakeScRsp> Parser
		{
			get
			{
				return SpaceZooTakeScRsp._parser;
			}
		}

		// Token: 0x170039CA RID: 14794
		// (get) Token: 0x0600CC68 RID: 52328 RVA: 0x00226BC8 File Offset: 0x00224DC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SpaceZooTakeScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170039CB RID: 14795
		// (get) Token: 0x0600CC69 RID: 52329 RVA: 0x00226BDA File Offset: 0x00224DDA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SpaceZooTakeScRsp.Descriptor;
			}
		}

		// Token: 0x0600CC6A RID: 52330 RVA: 0x00226BE1 File Offset: 0x00224DE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpaceZooTakeScRsp()
		{
		}

		// Token: 0x0600CC6B RID: 52331 RVA: 0x00226BEC File Offset: 0x00224DEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpaceZooTakeScRsp(SpaceZooTakeScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.oBBNODAFPAK_ = other.oBBNODAFPAK_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CC6C RID: 52332 RVA: 0x00226C44 File Offset: 0x00224E44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpaceZooTakeScRsp Clone()
		{
			return new SpaceZooTakeScRsp(this);
		}

		// Token: 0x170039CC RID: 14796
		// (get) Token: 0x0600CC6D RID: 52333 RVA: 0x00226C4C File Offset: 0x00224E4C
		// (set) Token: 0x0600CC6E RID: 52334 RVA: 0x00226C54 File Offset: 0x00224E54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170039CD RID: 14797
		// (get) Token: 0x0600CC6F RID: 52335 RVA: 0x00226C5D File Offset: 0x00224E5D
		// (set) Token: 0x0600CC70 RID: 52336 RVA: 0x00226C65 File Offset: 0x00224E65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x170039CE RID: 14798
		// (get) Token: 0x0600CC71 RID: 52337 RVA: 0x00226C6E File Offset: 0x00224E6E
		// (set) Token: 0x0600CC72 RID: 52338 RVA: 0x00226C76 File Offset: 0x00224E76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OBBNODAFPAK
		{
			get
			{
				return this.oBBNODAFPAK_;
			}
			set
			{
				this.oBBNODAFPAK_ = value;
			}
		}

		// Token: 0x0600CC73 RID: 52339 RVA: 0x00226C7F File Offset: 0x00224E7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SpaceZooTakeScRsp);
		}

		// Token: 0x0600CC74 RID: 52340 RVA: 0x00226C90 File Offset: 0x00224E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SpaceZooTakeScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && this.OBBNODAFPAK == other.OBBNODAFPAK && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CC75 RID: 52341 RVA: 0x00226CF0 File Offset: 0x00224EF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.OBBNODAFPAK != 0U)
			{
				num ^= this.OBBNODAFPAK.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CC76 RID: 52342 RVA: 0x00226D5E File Offset: 0x00224F5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CC77 RID: 52343 RVA: 0x00226D66 File Offset: 0x00224F66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CC78 RID: 52344 RVA: 0x00226D70 File Offset: 0x00224F70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this.OBBNODAFPAK != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.OBBNODAFPAK);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CC79 RID: 52345 RVA: 0x00226DE8 File Offset: 0x00224FE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.OBBNODAFPAK != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OBBNODAFPAK);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CC7A RID: 52346 RVA: 0x00226E58 File Offset: 0x00225058
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SpaceZooTakeScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.OBBNODAFPAK != 0U)
			{
				this.OBBNODAFPAK = other.OBBNODAFPAK;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CC7B RID: 52347 RVA: 0x00226ED4 File Offset: 0x002250D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CC7C RID: 52348 RVA: 0x00226EE0 File Offset: 0x002250E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					if (num != 96U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.OBBNODAFPAK = input.ReadUInt32();
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.reward_ == null)
					{
						this.Reward = new ItemList();
					}
					input.ReadMessage(this.Reward);
				}
			}
		}

		// Token: 0x0400520B RID: 21003
		private static readonly MessageParser<SpaceZooTakeScRsp> _parser = new MessageParser<SpaceZooTakeScRsp>(() => new SpaceZooTakeScRsp());

		// Token: 0x0400520C RID: 21004
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400520D RID: 21005
		public const int RetcodeFieldNumber = 12;

		// Token: 0x0400520E RID: 21006
		private uint retcode_;

		// Token: 0x0400520F RID: 21007
		public const int RewardFieldNumber = 3;

		// Token: 0x04005210 RID: 21008
		private ItemList reward_;

		// Token: 0x04005211 RID: 21009
		public const int OBBNODAFPAKFieldNumber = 15;

		// Token: 0x04005212 RID: 21010
		private uint oBBNODAFPAK_;
	}
}
